@@ -3,6 +3,7 @@ package ai.pai.lensman.settings; |
||
3 | 3 |
import android.content.Intent; |
4 | 4 |
import android.os.Bundle; |
5 | 5 |
import android.support.annotation.Nullable; |
6 |
+import android.view.View; |
|
6 | 7 |
import android.widget.EditText; |
7 | 8 |
import android.widget.Toast; |
8 | 9 |
|
@@ -29,6 +30,10 @@ public class SettingsActivity extends BaseActivity { |
||
29 | 30 |
boxIPET.setText(BoxUrlContainer.BOX_IP); |
30 | 31 |
} |
31 | 32 |
|
33 |
+ @OnClick(R.id.title_bar_middle_txt) |
|
34 |
+ void showIPEdit(){ |
|
35 |
+ findViewById(R.id.layout_box_ip).setVisibility(View.VISIBLE); |
|
36 |
+ } |
|
32 | 37 |
@OnClick(R.id.title_bar_back_layout) |
33 | 38 |
void back(){ |
34 | 39 |
finish(); |
@@ -168,7 +168,8 @@ |
||
168 | 168 |
android:layout_width="match_parent" |
169 | 169 |
android:layout_height="wrap_content" |
170 | 170 |
android:paddingRight="6dp" |
171 |
- android:orientation="vertical"> |
|
171 |
+ android:orientation="vertical" |
|
172 |
+ android:visibility="gone"> |
|
172 | 173 |
|
173 | 174 |
<TextView |
174 | 175 |
android:layout_width="match_parent" |